package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 微信发送红包记录
 *
 * @author oxiny
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_send_redpack_record")
public class SendRedpackRecord extends Model<SendRedpackRecord> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    private String mchBillNo;

    private Integer userId;

    /**
     * 状态 0未领取 1已领取 2已过期
     */
    private Integer status;

    /**
     * 金额
     */
    private Integer amount;

    private Date receiveTime;

    private Date addTime;
}
